'''
Created on January 11, 2010

'''
from os import popen

class LogFilter(object) :
    '''filter log files to get more descriptive results'''
    
    def __init__(self) :
        pass
    
    def messageLog(self):
        # General Log for all application
        messagelog=popen("tail -30 /var/log/messages").read()
        return messagelog
    
    def cronLogFiltering(self) :
        # log for cron Jop 
        cronlog=popen("tail -30 /var/log/cron").read()
        return cronlog
        
    def mailLog(self):
        # log for mail
        maillog=popen("tail -30 /var/log/maillog").read()
        return maillog
        
    def privateAuth(self):
        #log for private authonication
        privatelog=popen("tail -30 /var/log/secure").read()
        return privatelog
        
    def bootLog(self):
        # log for boot
        bootlog=popen("tail -30 /var/log/boot.log").read()
        return bootlog
        
    def yumLog(self):
        #yum log
        yumlog=popen("tail -30 /var/log/yum.log").read()
        return yumlog 
